cernlib-montecarlo software package provides CERNLIB Monte Carlo libraries, you can install in your Ubuntu 12.04 LTS (Precise Pangolin) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install cernlib-montecarlo
cernlib-montecarlo is installed in your system.
Make ensure the cernlib-montecarlo package were installed using the commands given below,
$ sudo dpkg-query -l | grep cernlib-montecarlo *
You will get with cernlib-montecarlo package name, version, architecture and description in a table
| Distro | Ubuntu 12 04 lts precise pangolin |
| Section | Science |
| Package | cernlib-montecarlo |
| Version | 20061220+dfsg3-1build1 |
| Description | CERNLIB Monte Carlo libraries |
| Sub Section | Science |